﻿using System;
using System.Collections.Generic;
namespace UcAsp.Net.IDAL
{
    public interface ICategoriesDAL
    {
        bool Delete(int id);
        UcAsp.Net.Model.Categories GetCategoriesById(int id);
        UcAsp.Net.Model.Categories GetCategoriesByShowPath(string path);
        UcAsp.Net.Model.Categories Insert(UcAsp.Net.Model.Categories model);
        System.Collections.Generic.List<UcAsp.Net.Model.Categories> Select(int parentid, int pagesize, int pageindex, out int pagecount);
        System.Collections.Generic.List<UcAsp.Net.Model.Categories> SelectAll();
        System.Collections.Generic.List<UcAsp.Net.Model.Categories> SelectList(int parentid);
        System.Collections.Generic.List<UcAsp.Net.Model.Categories> GetCategoriesSubject(string categories);
        bool Update(UcAsp.Net.Model.Categories model);
        List<Model.Select> GetCategoriessComBox();
        List<Model.CategoriesTree> GetCategoriessPath(int id);
        List<Model.CategoriesTree> GetCategoriessTree(int parentid, List<Model.CategoriesTree> list, int i);

    }
}
